import customConfig from "@/frame-config/FrameCustom";

export interface IFrameConfig {
  FRAME_VERSION: string;
  APP_NAME: string;
  API_URL: string;
  APP_TOKEN_NAME: string;
  APP_LAYOUT_PATH: string;
}

const defaultConfig: IFrameConfig = {
  FRAME_VERSION: "0.5.1",
  APP_NAME: "YApp",
  API_URL: process.env.NODE_ENV === "producion" ? "" : "",
  APP_TOKEN_NAME: "Token",
  APP_LAYOUT_PATH: "frame/layout/Index.vue"
};

export default {
  ...defaultConfig,
  ...customConfig
};
